/* global Vue */
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import workManagement from '@/views/workManagement/workManagement'
import projectProgress from '@/views/projectProgress/projectProgress'
import operationSituation from '@/views/operationSituation/operationSituation'
import my from '@/views/my/my'
import projectDisMap from '@/views/workManagement/projectDisMap'
import projectDisGrid from '@/views/workManagement/projectDisGrid'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/workManagement'
    },
    {
      path: '/workManagement', // 工作管理
      meta: {
        keepAlive: true
      },
      component: workManagement
    },
    {
      path: '/projectProgress', // 工程进度
      meta: {
        keepAlive: true
      },
      component: projectProgress
    },
    {
      path: '/operationSituation', // 运行情况
      meta: {
        keepAlive: true
      },
      component: operationSituation
    },
    {
      path: '/my', // 我的
      meta: {
        keepAlive: true
      },
      component: my
    },
    {
      path: '/projectDisMap',
      meta: {
        keepAlive: true
      },
      component: projectDisMap
    },
    {
      path: '/projectDisGrid',
      meta: {
        keepAlive: true
      },
      component: projectDisGrid
    }
  ]
})
